<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${apply.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">userId：</label>
                            <div class="col-sm-8">
                                <input id="userId" name="userId" th:value="${apply.userId}" class="form-control"
                                       type="text" readonly="readonly">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">漂流者姓名：</label>
                            <div class="col-sm-8">
                                <input id="redundance4" name="redundance4" th:value="${apply.redundance4}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">书名：</label>
                            <div class="col-sm-8">
                                <input id="bookName" name="bookName" th:value="${apply.bookName}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">作者：</label>
                            <div class="col-sm-8">
                                <input id="author" name="author" th:value="${apply.author}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">出版社：</label>
                            <div class="col-sm-8">
                                <input id="press" name="press" th:value="${apply.press}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">图片(显示有问题)：</label>
                            <div class="col-sm-8 row-sm-8">
                                <input id="bookImg" name="bookImg" th:value="${apply.bookImg}"
                                     class="form-control" alt="图书" style="height:200px;width:200px" >
                            </div>
                        </div>-->
                        <input id="bookImg" name="bookImg" th:value="${apply.bookImg}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图书简介：</label>
                            <div class="col-sm-8">
                                <input id="content" name="content" th:value="${apply.content}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">分类id：</label>
                            <div class="col-sm-8">
                                <input id="catId" name="catId" th:value="${apply.catId}" class="form-control"
                                       type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">分类名：</label>
                            <div class="col-sm-8">
                                <input id="redundance2" name="redundance2" th:value="${apply.redundance2}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">规则id：</label>
                            <div class="col-sm-8">
                                <input id="rulerId" name="rulerId" th:value="${apply.rulerId}" class="form-control"
                                       type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">规则内容：</label>
                            <div class="col-sm-8">
                                <input id="redundance3" name="redundance3" th:value="${apply.redundance3}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">上传时间：</label>
                            <div class="col-sm-8">
                                <input id="upDate" name="upDate" th:value="${#dates.format(apply.upDate, 'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control" type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否收回：</label>
                            <div class="col-sm-8">
                                <!--<input id="isRecycle" name="isRecycle" th:value="${apply.isRecycle}"
                                       class="form-control" type="text">-->
                                <label class="radio-inline">
                                    <input
                                            th:field="*{apply.isRecycle}" type="radio" name="isRecycle" value="1"/>
                                    物归原主
                                </label>
                                <label class="radio-inline">
                                    <input
                                            th:field="*{apply.isRecycle}" type="radio" name="isRecycle" value="0"/>
                                    无私奉献
                                </label>
                            </div>
                        </div>
                        <div class="form-group" th:if="${apply.isRecycle == 1}">
                            <label class="col-sm-3 control-label">收回时间：</label>
                            <div class="col-sm-8">
                                <input id="recycleTime" name="recycleTime" th:value="${#dates.format(apply.recycleTime, 'yyyy-MM-dd HH:mm:ss')}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group" hidden>
                            <label class="col-sm-3 control-label">审核通过:</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input
                                            th:field="*{apply.isPass}" type="radio" name="isPass" value="1" readonly/>
                                    通过
                                </label>
                                <label class="radio-inline">
                                    <input
                                            th:field="*{apply.isPass}" type="radio" name="isPass" value="0" readonly/>
                                    不通过
                                </label>
                                <label class="radio-inline">
                                    <input
                                            th:field="*{apply.isPass}" type="radio" name="isPass" value="2" readonly/>
                                    审核中
                                </label>
                                <!--<input id="isPass" name="isPass" th:value="${apply.isPass}" class="form-control" type="text">-->
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">冗余：</label>
                            <div class="col-sm-8">
                                <input id="redundance1" name="redundance1" th:value="${apply.redundance1}"
                                       class="form-control" type="text">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">冗余：</label>
                            <div class="col-sm-8">
                                <input id="redundance4" name="redundance4" th:value="${apply.redundance4}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">冗余：</label>
                            <div class="col-sm-8">
                                <input id="redundance5" name="redundance5" th:value="${apply.redundance5}"
                                       class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-3">
                            <button type="submit" class="btn btn-danger" onclick="applyPass()">审核通过</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/book/apply/edit.js">
</script>
</body>
</html>
